Laravel view component cache


錯誤訊息
include(C:\laragon\www\fc2020\vendor\composer/../../app/View/Components/Sidebar.php): failed to open stream: No such file or directory

清掉一些無用的 view comoponent controller 後發現出現找不到檔案,但是跑完 view:clear 和 cache:clear 各種 clear 還是沒用,最後複製 stackoverflow 解決

Try php artisan config:cache php artisan config:clear composer dump-autoload -o

可能因為 component 是用 CLI 建的,所以要重跑 composer

https://stackoverflow.com/questions/53203254/failed-to-open-stream-no-such-file-or-directory-laravel








你可能感興趣的文章

《鳥哥 Linux 私房菜:基礎篇》Chapter 01 - Linux 是什麼與如何學習

《鳥哥 Linux 私房菜:基礎篇》Chapter 01 - Linux 是什麼與如何學習

AJAX POST API 講解(筆記)

AJAX POST API 講解(筆記)

[學學ReactNative] DAY1 - 前言與動機:為何選擇 React Native?

[學學ReactNative] DAY1 - 前言與動機:為何選擇 React Native?






留言討論